<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;
# 模块名 控制器名 操作方法名
#获取作者
Route::get('api/:version/author','api/:version.Author/getAuthor');
#搜索作者
Route::get('api/:version/search/author','api/:version.Author/searchAuthor');
#获取作者下面诗的标题
Route::get('api/:version/title','api/:version.Poetries/getTitle');
#获取作者下面诗的标题下面的诗
Route::get('api/:version/detail','api/:version.Poetries/getDetail');